PROJECT (viewer)

FIND_PACKAGE(VTK REQUIRED)
IF(NOT VTK_USE_RENDERING)
  MESSAGE(FATAL_ERROR "Example ${PROJECT_NAME} requires VTK_USE_RENDERING.")
ENDIF(NOT VTK_USE_RENDERING)
INCLUDE(${VTK_USE_FILE})

FIND_PACKAGE(FLTK)
  IF(FLTK_FOUND)
    INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
  ELSE(FLTK_FOUND)
    MESSAGE(FATAL_ERROR
            "Cannot build FLTK.  Please set FLTK_DIR.")
  ENDIF(FLTK_FOUND)


ADD_EXECUTABLE(viewer viewer.cxx vtk_fltk_gui.cxx vtk_fltk_gui.h viewer_gui.cxx viewer_gui.h Setting_Imgage2D.cxx Setting_Imgage3D.cxx algorithm.cxx vtkFlRenderWindowInteractor.cxx vtkFlRenderWindowInteractor.h )

TARGET_LINK_LIBRARIES(viewer vtkRendering vtkIO ${FLTK_LIBRARIES} ${VTK_LIBRARIES})

